﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 贪吃蛇
{
    internal class Wall:GameObject 
    {
        public Wall(int x, int y)   //在地图墙壁类中创建一个构造函数，然后在绘制过程中被初始化
        {
            pos = new Position (x, y);    //创建一个坐标，然后把光标设置到pos
        }
        public override void  Draw()
        {
            Console.SetCursorPosition (pos.x, pos.y);
            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write("■");
        }

    }
}
